package org.jaaksi.demo.ptr.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import retrofit.coverter.GithubTypeAdapterFactory;

/**
 * Created by an on 2016/11/5.<br/>
 */

public class DataParseUtil {
  public static final Gson mGson = new Gson();

  /**
   * 专门用于解析github服务器json,忽略github reponse的外层包裹，直接得到content对应部分
   */
  public static Gson mGithubGson =
      new GsonBuilder().registerTypeAdapterFactory(new GithubTypeAdapterFactory()).create();
}
